// 引入 request 文件
import request from './index.js'
 
// 获取所有用户列表
// export const getUserListApi = () => {
// 	return request({
// 		url: '/user/list',
// 		method: 'get',
// 		header: {} // 自定义
// 	})
// }
// 活动详情
export const activityDetial = (data) => {
	return request({
		url: '/api/Activity/detail',
		method: 'post',
		data
	})
}
// 投票项目列表
export const getProjectList = (data) => {
	return request({
		url: '/api/Project/list',
		method: 'post',
		data
	})
}
// 获取项目详情
export const projectDetail = (data) => {
	return request({
		url: '/api/Project/detail',
		method: 'post',
		data
	})
}
// 获取排名列表
export const activityRank = (data) => {
	return request({
		url: '/api/Activity/rank',
		method: 'post',
		data
	})
}
// 点击投票
export const projectSubmit = (data) => {
	return request({
		url: '/api/Project/submit',
		method: 'post',
		data
	})
}
// 登录
export const userLoginH5 = (code) => {
	return request({
		url: '/api/User/loginH5?code='+code,
		method: 'get',
	})
}

// 获取bannner详情
export const Projectbanners = () => {
	return request({
		url: '/api/Project/banners',
		method: 'get',
	})
}

// 点击banner 调用浏览接口
export const Projectclick = (data) => {
	return request({
		url: '/api/Project/click',
		method: 'post',
		data
	})
}

